<%@ page contentType="text/html;charset=utf-8" language="java" %>
<html>
<head>
<title><%=currentPage.getTitle()%></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link type="text/css" rel="stylesheet" href="<%=currentSkinCss%>" id="menuStyleSheet">
<script type="text/javascript">
//点击页面菜单隐藏
document.onclick = function()
{
        if(window.top.hideAllMenuScriptlets)
        {
            window.top.hideAllMenuScriptlets();
        }
}


</script>
<script type="text/javascript" src="<%=ctxpath%>/themes/newstyle/javascript/toolbar.js" ></script>
<script type="text/javascript" src="<%=ctxpath%>/themes/newstyle/javascript/sortabletable.js"></script>
</head>
<body scroll="no" id="body">
<div id="tijiao" style="position:absolute; width:100%; height:100%; z-index:2; visibility: hidden;">
    <div id="Layer1" style="position:absolute; width:100%; height:100%; z-index:1"></div>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" background="/images/button_bg.gif">
        <tr>
            <td align="center" valign="middle">
                <table id="table1" width="50%"  height="200" border="0" cellpadding="0" cellspacing="0" bgcolor="#8E8E8E">
                <tr>
                <td bgcolor="#F4F4F4">
                <iframe id="frmNextTask" name="frmNextTask" src="" style="position: absolute; width: 100%; height: 100%; visibility: hidden;z-index:2" frameborder="0" scrolling="No"></iframe>
                </td>
                </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
<table id="display" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
	<tr>
		<td valign="top">

<div id="layer1" style="width:100%; height:100%; z-index:50; overflow: auto;">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr>
            <td valign="top" align="center">


<!-- 导航条开始 ，请不要编辑该部分 -->
<br>
<table class="location">
	<tr>
		<td class="location_td">
			<li>当前位置：
            <%
            if(currentPage.getPageNavigations()!=null)
            {
                for(java.util.Iterator it=currentPage.getPageNavigations().iterator();it.hasNext();)
                {
                    com.ecomm.util.functionconfig.PageNavigation pageNavigation=(com.ecomm.util.functionconfig.PageNavigation)it.next();
                    if(!"".equals(pageNavigation.getUrl()))
                    {
                        out.println("<a href='"+com.ecomm.util.functionconfig.FunctionVariantProcess.processString(this.pashCtxPathUrl(ctxpath,pageNavigation.getUrl()),hashVariant)+"'>"+pageNavigation.getName()+"</a>&nbsp;&gt;&gt;&nbsp;");
                    }
                    else
                    {
                        out.println(com.ecomm.util.functionconfig.FunctionVariantProcess.processString(pageNavigation.getName(),hashVariant)+"&nbsp;&gt;&gt;&nbsp;");
                        //out.println(pageNavigation.getName()+"&nbsp;&gt;&gt;&nbsp;");
                    }

                }
            }
            %>
		</td>
	</tr>
</table>
<br>
<!--  导航条结束 -->


<!-- 页标签开始 ，请不要编辑该部分 -->

<table cellpadding="0" cellspacing="0" class="labeltable_top">
    <tr>
        <td class="labeltable_top_left" nowrap>&nbsp;
        </td>
        <td class="labeltable_top_middle" nowrap>
            <%
                if(currentPage.getPageHeaders()!=null)
                {
                    for(java.util.Iterator it=currentPage.getPageHeaders().iterator();it.hasNext();)
                    {
                        com.ecomm.util.functionconfig.PageHeader pageHeader=(com.ecomm.util.functionconfig.PageHeader)it.next();
                        if(com.ecomm.util.functionconfig.FunctionRole.checkPageHeaderPermission(functionRole,currentPage.getId(),pageHeader.getName(),"visible"))
                        {
                            String labelClass="label";
                            if("".equals(pageHeader.getUrl()))
                            {
                                labelClass="labelactive";
                            }
                %>
                <table cellpadding="0" cellspacing="0" class="<%=labelClass%>">
                    <tr>
                        <td class="left">&nbsp;
                        </td>
                        <td class="middle" nowrap>
                            <%
                            if(!"".equals(pageHeader.getUrl()))
                            {
                                out.println("<a href='"+com.ecomm.util.functionconfig.FunctionVariantProcess.processString(this.pashCtxPathUrl(ctxpath,pageHeader.getUrl()),hashVariant)+"'>"+pageHeader.getName()+"</a>");
                            }
                            else
                            {
                                out.println(pageHeader.getName());
                            }
                            %>
                            </td>
                        <td class="right">&nbsp;
                        </td>
                    </tr>
                </table>
            <%
                        }
                    }
                }
            %>
			&nbsp;
        </td>
        <td class="labeltable_top_right" nowrap>&nbsp;</td>
    </tr>
</table>

<!--  页标签结束 -->


<table cellspacing="0" cellpadding="0" class="labeltable_middle">
        <tr>
            <td class="labeltd_middle">
                <!-- 提示信息开始 ，请不要编辑该部分 -->
<%if ((currentPage.getTip()!=null)&&(!currentPage.getTip().equals("")))
    {
%>
<br>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td width="80" valign="middle" align="center">
            <img src="<%=currentStylePath%>tip.gif" >
        </td>
        <td>
            <b>提示：</b><font color="red"><%=username%></font>&nbsp<%=currentPage.getTip()%>
            <br>
        </td>
    </tr>
</table>
<%}%>
<br>
                <!--  提示信息结束 -->
<%!
 private String pashCtxPathUrl(String ctx,String surl){
      String tmpUrl = surl;
      if(surl!=null&&surl!=""){
      //System.out.println("srul1========="+surl);
      //以“/ ”开始需要添加ctxpath
       if(surl.indexOf("javascript:")!=0&&surl.indexOf("/")==0){
        tmpUrl =ctx+ surl;
    }
}
//System.out.println("surl2========================="+tmpUrl);
      return tmpUrl;
}
%>
